package com.mall.ware.feign;

import com.mall.common.dto.SkuInfoDTO;
import com.mall.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: 谢君臣
 * @Date: 2022/7/26-19:22
 * @version: 1.0
 * @function:
 */
@FeignClient("productServer")
public interface ProductFeignClient {

    @GetMapping("/product/skuinfo/{id}")
    Result<SkuInfoDTO> getInfo(@PathVariable("id") Long id);
}
